import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import config from './config'
import validator from './config/validator'
import formatter from './config/formatter'
import ElementUI from 'element-ui'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/styl/index.styl'
import Vuex from 'vuex'
import screenfull from 'screenfull'
import Print from 'vue-print-nb'
Vue.use(ElementUI)
Vue.use(Viewer)
Vue.use(Vuex)
Vue.use(screenfull)
Vue.use(Print);

Viewer.setDefaults({
  Options: {
    inline: true,
    button: true,
    navbar: true,
    title: true,
    toolbar: true,
    tooltip: true,
    movable: true,
    zoomable: true,
    rotatable: true,
    scalable: true,
    transition: true,
    fullscreen: true,
    keyboard: true,
    url: 'data-source'
  }
})
Vue.use(validator)
Vue.use(formatter)
/**
 * 生产环境关掉提示
 */
Vue.config.productionTip = false
/**
 * 全局注册应用配置
 */
Vue.prototype.$config = config

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
